//导入joi
const Joi = require("joi");

//定义文章验证字段
const title = Joi.string().required()
const content = Joi.string().required()
const state = Joi.string().required()
const cate_id = Joi.string().required()

exports.article_add_schema = {
   body:{
       title,
       content,
       state,
       cate_id,
   }
}
